package bite20220310;

import java.util.Scanner;

public class basic {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int year = in.nextInt();
        if (year % 100 !=0){
            if (year % 4 == 0){
                System.out.println("闰年");
            }else{
                System.out.println("不是闰年");
            }
        }else{
            if (year % 400 == 0){
                System.out.println("闰年");
            }else{
                System.out.println("不是闰年");
            }
        }
    }
    public static void main3(String[] args) {
        int a =-2;
        int b = 1;
        int c = a|b;
        System.out.println(c);
    }
    public static void main2(String[] args) {
        int a = 10;
        int b = 20;
        boolean c = a==1 & b==2;
        if (a==1 & b==1){
            ;//不能这么写，java中只有ture、false
        }
    }
    public static void main1(String[] args) {
        int a = 10;
        short b = 5;
        b = (short)(a+b);//运算会转换成 int类型运算，无法存到short类型中，需要强制类型转换
        b += a;//增量运算符会进行自动的类型转换
    }
}
